//
//  main.m
//  evidenceGather
//
//  Created by 继伟 王 on 13-8-17.
//  Copyright (c) 2013年 无. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "RootAppDelegate.h"
#import "TokDataBase.h"

void initData();
int main(int argc, char *argv[])
{
    @autoreleasepool {
        initData();
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([RootAppDelegate class]));
    }
}

void initData()
{
    [TokDataBase sharedInstanceMethod];
    
//    //判断有没有图片，如果没有则进行copy
//    NSString *docPath = [TokDocManageUtilities getBugImgDocPath];
//    if (![TokDocManageUtilities isExistWithDocPath:docPath]) {
//        NSString *oldPath = [[NSBundle mainBundle] pathForResource:@"photos" ofType:@"zip"];
//        
//        if ([TokDocManageUtilities isExistWithDocPath:oldPath]) {
//            ZipArchive* za = [[ZipArchive alloc] init];
//            if( [za UnzipOpenFile:oldPath] )
//            {
//                NSString *destPath =  [TokDocManageUtilities getAppWorkPath];
//                BOOL ret = [za UnzipFileTo: destPath overWrite:YES];
//                if( NO==ret )
//                {
//                    // error handler here
//                }
//                [za UnzipCloseFile];
//            }
//            [za release];
//        }
//    }
//    //设置文件不进行备份
//    [TokDocManageUtilities addSkipBackupAttributeToFilePath:docPath];
}